import { get, post } from "@/utils/request";
const BASE_URL = window.baseUrl.ticket;

/** 新增 */
export function createNotice(query) {
  return post(BASE_URL + "/notice/create", query);
}

/** 更新 */
export function updateNotice(query) {
  return post(BASE_URL + "/notice/update", query);
}
/** 查询详情 */
export function getIdNotice(query) {
  return get(BASE_URL + "/notice/get", query);
}
/** 分页查询接口 */
export function pageQuery(query) {
  return post(BASE_URL + "/notice/pageQuery", query);
}

/** 删除接口 */
export function deleteNotice(query) {
  return post(BASE_URL + "/notice/delete", query);
}
//  获取全部用户
export function getAllUser(query) {
  return get(BASE_URL + "/commonUser/getAllUser", query);
}
